Skip to content

Fix stale marker blockers in worktree prune#701

Merged
chubes4 merged 2 commits into
mainfrom
fix-stale-marker-prune
Jun 14, 2026
Merged

Fix stale marker blockers in worktree prune#701
chubes4 merged 2 commits into
mainfrom
fix-stale-marker-prune

Conversation

@chubes4

@chubes4 chubes4 commented Jun 14, 2026

Copy link
Copy Markdown
Member

Summary

  • Teach workspace worktree prune to repair safe missing-path DMC inventory artifacts after Git prune/refresh.
  • Report path-present stale .git/worktrees marker blockers with evidence and next commands while leaving checkout paths in place for operator review.
  • Update prune CLI rendering and smoke coverage so stale inventory/blocker states no longer collapse into Nothing to prune.

Fixes #698.

Verification

  • php -l inc/Workspace/WorkspaceWorktreeLifecycle.php
  • php -l inc/Cli/Commands/WorkspaceCommand.php
  • php -l tests/smoke-worktree-prune-no-git.php
  • php tests/smoke-worktree-prune-no-git.php
  • php tests/smoke-worktree-cleanup.php
  • php tests/smoke-worktree-bounded-cleanup-eligible-apply.php
  • php tests/smoke-worktree-cleanup-cli.php

AI assistance

  • AI assistance: Yes
  • Tool(s): OpenCode (openai/gpt-5.5)
  • Used for: Investigated the prune/cleanup paths, drafted the implementation and smoke coverage, and ran targeted verification for Chris to review.

@homeboy-ci

homeboy-ci Bot commented Jun 14, 2026

Copy link
Copy Markdown
Contributor

Homeboy Results — data-machine-code

Lint

lint — passed

ℹ️ Full options: homeboy docs commands/lint
ℹ️ Save lint baseline: homeboy lint data-machine-code --baseline
Deep dive: homeboy lint data-machine-code --changed-since eb84901

Artifacts and drill-down
  • CI results artifact: homeboy-ci-results-data-machine-code-lint-quality-Linux-node24 contains immediate command JSON for this action invocation.
  • Observation artifact: homeboy-observations-data-machine-code-lint-quality-Linux-node24 contains exported Homeboy run history for deeper queries.
  • Drill-down: download the observation artifact, then run homeboy runs import <dir>, homeboy runs list, and homeboy runs findings <run-id>.
  • Artifacts are attached to the workflow run: https://github.com/Extra-Chill/data-machine-code/actions/runs/27498409091

Test

test — passed

ℹ️ Auto-fix lint issues: homeboy refactor data-machine-code --from lint --write
ℹ️ Collect coverage: homeboy test data-machine-code --coverage
ℹ️ Save test baseline: homeboy test data-machine-code --baseline
ℹ️ Pass args to test runner: homeboy test -- [args]
ℹ️ Full options: homeboy docs commands/test
Deep dive: homeboy test data-machine-code --changed-since eb84901

Artifacts and drill-down
  • CI results artifact: homeboy-ci-results-data-machine-code-test-quality-Linux-node24 contains immediate command JSON for this action invocation.
  • Observation artifact: homeboy-observations-data-machine-code-test-quality-Linux-node24 contains exported Homeboy run history for deeper queries.
  • Drill-down: download the observation artifact, then run homeboy runs import <dir>, homeboy runs list, and homeboy runs findings <run-id>.
  • Artifacts are attached to the workflow run: https://github.com/Extra-Chill/data-machine-code/actions/runs/27498409091

Audit

audit — passed

  • audit — 27 finding(s)
  • Total: 27 finding(s)

Deep dive: homeboy audit data-machine-code --changed-since eb84901

Artifacts and drill-down
  • CI results artifact: homeboy-ci-results-data-machine-code-audit-quality-Linux-node24 contains immediate command JSON for this action invocation.
  • Observation artifact: homeboy-observations-data-machine-code-audit-quality-Linux-node24 contains exported Homeboy run history for deeper queries.
  • Drill-down: download the observation artifact, then run homeboy runs import <dir>, homeboy runs list, and homeboy runs findings <run-id>.
  • Artifacts are attached to the workflow run: https://github.com/Extra-Chill/data-machine-code/actions/runs/27498409091
Tooling versions
  • Homeboy CLI: homeboy 0.229.6+d2ad11c
  • Extension: wordpress from https://github.com/Extra-Chill/homeboy-extensions
  • Extension revision: adfd73d9
  • Action: unknown@unknown

@chubes4 chubes4 merged commit e65ae18 into main Jun 14, 2026
5 checks passed
@chubes4 chubes4 deleted the fix-stale-marker-prune branch June 14, 2026 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Resolve stale worktree marker blockers when DMC prune reports nothing to prune

1 participant